#pragma once

#ifdef __cplusplus
extern "C" {
#endif

typedef void (*lv_indev_encoder_callback_t)(int16_t enc_diff);

void lv_indev_encoder_register_callback(lv_indev_encoder_callback_t cb);

void lv_indev_encoder_init(void);

bool lv_indev_encoder_read(int16_t *enc_diff);

#ifdef __cplusplus
}
#endif